package Controleur;

import Reseau.Noeud;

public class Urgence {
	private Noeud noeud;
	private int tempsDebut = 0;
	private boolean traitee = false;
	private boolean active = false;
	
	public Urgence(Noeud noeud, int tempsDebut){
		this.noeud = noeud;
		this.tempsDebut = tempsDebut;
		reset();
	}
	
	public boolean estActive(){
		return active;
	}
	
	public void activer(){
		active = true;
	}
	
	public boolean estTraitee(){
		return traitee;
	}
	
	public void finTraitement(){
		traitee = true;
	}
	
	public int getTempsDebut(){
		return tempsDebut;
	}
	
	public Noeud getNoeud(){
		return noeud;
	}
	
	public void reset(){
		traitee = false;
		active = false;
	}
}
